package kosta.model.memo;

import java.util.List;

import javax.annotation.Resource;

import kosta.model.member.MemberVO;

import org.springframework.stereotype.Service;

@Service
public class MemoServiceImpl implements MemoService{
	@Resource(name="memoDaoImpl")
	private MemoDao memoDao;

	@Override
	public MemberVO idCheck(String id) throws Exception {
		return memoDao.idCheck(id);
	}

	@Override
	public void sendMemo(MemoVO memoVO) throws Exception {
		memoDao.sendMemo(memoVO);
	}


	@Override
	public List<MemoVO> getMemoList(String id) throws Exception {
		return memoDao.getMemoList(id);
	}

	@Override
	public void showMemoCheck(int no) throws Exception {
		memoDao.showMemoCheck(no);
	}

	@Override
	public void outMemo(String[] no) throws Exception {
		for(int i=0; i<no.length; i++){
			System.out.println(no + "-------------- outMemo"+no[i]);
			memoDao.outMemo(no[i]);
		}
		
	}

	@Override
	public List<MemoVO> sendMemoList(String id) throws Exception {
		return memoDao.sendMemoList(id);
	}
}
